package com.wut.jmx.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wut.jmx.dto.DishDto;
import com.wut.jmx.entity.Category;
import com.wut.jmx.entity.Dish;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface DishService  extends IService<Dish> {
    void saveWithFlavor(DishDto dishDto);
    DishDto getByIdWithFlavor(Long id);
    //更新菜品信息同时还更新对应的口味信息
    void updateWithFlavor(DishDto dishDto);
    //根据传过来的id批量或者是单个的删除菜品
    void deleteByIds(List<Long> ids);
}
